﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" Inherits="Nivdal.InternationalCupFixtures" Title="" StylesheetTheme="SkinFile" Codebehind="InternationalCupFixtures.aspx.cs" %>

<asp:Content ID="PageNameContent" ContentPlaceHolderID="PageNamePlaceHolder" runat="server">
    <asp:Label ID="PageNameLabel" runat="server" CssClass="PageNameContentStyle" Text="<%$ Resources:Resource, InternationalCupFixtures_PageNameLabel %>"></asp:Label>
</asp:Content>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
    <ContentTemplate>
    
    <asp:UpdateProgress ID="Progress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1">
        <ProgressTemplate>
            <div class="ajaxloader">
                <asp:Image ID="ProgressImage1" runat="server" ImageUrl="~/Images/ajax-loader.gif" />
            </div>
        </ProgressTemplate>
    </asp:UpdateProgress>                    
    
    
    <asp:HiddenField ID="SeasonHiddenField" runat="server" Value="-1"/>
    <asp:HiddenField ID="LanguageHiddenField" runat="server" />
    <div class="basic_element">
    <div class="red_title_no_padding">
    <div class="grey_title_inside_red floater">
       <asp:Label ID="PageTitleLabel" runat="server" CssClass="team_name_white" Text="<%$ Resources:Resource, InternationalCupFixtures_PageNameLabel %>"></asp:Label>
    </div>
    <div class="grey_title_triangle floater"></div>
    <asp:Label ID="SeasonTitleLabel" runat="server" CssClass="white_title"></asp:Label>    
    </div>
    <div class="padding5">
        <asp:Label ID="ErrorLabel" runat="server" Text="" SkinID="RedSmallHeaderLabel"></asp:Label>    
        <br />
        <asp:DropDownList ID="RoundDropDownList" runat="server" DataSourceID="RoundSqlDataSource"
                        DataTextField="RoundName" DataValueField="Round" AutoPostBack="true" EnableViewState="true"
                        OnSelectedIndexChanged="RoundDropDownList_SelectedIndexChanged">
        </asp:DropDownList>    
        <asp:SqlDataSource ID="RoundSqlDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
            SelectCommand="Nivdal_ShowInternationalCupRoundList" SelectCommandType="StoredProcedure">
        </asp:SqlDataSource>
        <br />
        <br />
        <h1><asp:Label ID="FixturesTitleLabel" runat="server" Text="<%$ Resources:Resource, InternationalCupFixtures_FixturesTitleLabel %>" SkinID="InfoLabel"></asp:Label></h1>
        <div class="antifloater">
            <asp:Panel ID="AddToLiveAllPanel" runat="server">
                <asp:Image ID="AddSelectedToLiveImage" ImageUrl="~/Images/Icons/LiveDetails.png" runat="server"        
                AlternateText="Live" ToolTip="<%$ Resources:Resource, Global_AddSelectedMatchesToLive %>" />
                <asp:LinkButton ID="AddSelectedMatchesToLiveButton" runat="server" SkinID="GreenTitleLink"
                 Text="<%$ Resources:Resource, Global_AddSelectedMatchesToLive %>" OnClick="AddSelectedToLive"></asp:LinkButton>         
             </asp:Panel>
        </div>
        <asp:GridView ID="GridView1" runat="server" SkinID="Professional" DataSourceID="InternationalCupFixturesSqlDataSource" 
        AutoGenerateColumns="false" AllowPaging="true" PageSize="128" OnRowCommand="AddToLive">
        <PagerSettings FirstPageText="<%$ Resources:Resource, FirstPage %>" LastPageText="<%$ Resources:Resource, LastPage %>"
            Mode="NumericFirstLast" PageButtonCount="10" Position="Bottom" />
        <PagerStyle CssClass="pagination" HorizontalAlign="Center" />
        <Columns>
            <asp:TemplateField HeaderText="<%$ Resources:Resource, InternationalCupFixtures_StartTimeHeaderText %>">
                <ItemTemplate>
                    <asp:Label ID="StartTimeLabel" runat="server" Text='<%# Eval("StartTime") %>' SkinID="GridLabel"/>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="<%$ Resources:Resource, Global_Match %>">
                <ItemTemplate>
                    <asp:Hyperlink ID="ParticipantsLinkButton" runat="server" Text='<%# Eval("Participants") %>'
                     NavigateUrl='<%# Eval("MatchId", "MatchPage.aspx?MatchId={0}") %>' SkinID="BlackHyperLinkSkin"></asp:Hyperlink>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="<%$ Resources:Resource, Global_Result %>">
                <ItemTemplate>
                    <asp:Label ID="ResultLabel" runat="server" Text='<%# Eval("Result") %>' SkinID="GridLabel" />
                </ItemTemplate>        
            </asp:TemplateField>
            <asp:TemplateField>
                <ItemTemplate>
                    <asp:ImageButton ID="AddToLiveButton" runat="server" ImageUrl="~/Images/Icons/LiveDetails.png" CommandName="AddToLive" 
                     Visible='<%# Eval("CanBeAddedToLive") %>' ToolTip="<%$ Resources:Resource, Live_AddMatchToLiveText %>" CommandArgument='<%# Eval("MatchId") %>' />
                    <asp:HiddenField ID="MatchIdHiddenField" runat="server" Value='<%# Eval("MatchId") %>' />
                    <asp:CheckBox ID="AddLiveCheckBox" runat="server" Visible='<%# Eval("CanBeAddedToLive") %>' />
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <EmptyDataTemplate>
        <asp:Label ID="NomatchesLabel" runat="server" Text="<%$ Resources:Resource, InternationalCupFixtures_NomatchesLabel %>"></asp:Label>
        </EmptyDataTemplate>
        </asp:GridView>
    
        <br />
        <asp:LinkButton ID="InternationalCupLinkButton" Text="<%$ Resources:Resource, InternationalCupFixtures_InternationalCupLinkButton %>" runat="server"  SkinID="TitleLink"></asp:LinkButton>
        <asp:SqlDataSource ID="InternationalCupFixturesSqlDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
            SelectCommand="Nivdal_ShowInternationalCupFixtures" SelectCommandType="StoredProcedure">
        </asp:SqlDataSource>
        <div class="clearBoth"></div>
    </div>
    </div>
    </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>

